<template>
<div class="app-container">
  <el-table
    :data="tableData"
    border
    style="width: 100%"
    :header-cell-style="{'text-align':'center'}"
    :cell-style="{'text-align':'center'}"
    >
    <el-table-column
      prop="date"
      label="就诊日期"
      width="180">
    </el-table-column>
    <el-table-column
      prop="name"
      label="患者姓名"
      width="180">
    </el-table-column>
    <el-table-column
      prop="address"
      label="主要症状">
    </el-table-column>
    <el-table-column
      prop="department"
      label="就诊科室">
    </el-table-column>
    <el-table-column
      prop="attendingDoctor"
      label="主治医生">
    </el-table-column>
  </el-table>
</div>
</template>

<script>
  export default {
    data() {
      return {
        tableData: [{
          date: '2016-05-02',
          name: '王小虎',
          address: '胸闷，手臂无力，感觉不舒服',
          department:'呼吸科',
          attendingDoctor:'不知道'
        }]
      }
    }
  }
</script>